import request from '@/utils/request'

// 查询科研人员关联项目列表
export function listResearcherprojects(query) {
  return request({
    url: '/peoplegroup/researcherprojects/list',
    method: 'get',
    params: query
  })
}

// 查询科研人员关联项目详细
export function getResearcherprojects(researcherProjectId) {
  return request({
    url: '/peoplegroup/researcherprojects/' + researcherProjectId,
    method: 'get'
  })
}

// 新增科研人员关联项目
export function addResearcherprojects(data) {
  return request({
    url: '/peoplegroup/researcherprojects',
    method: 'post',
    data: data
  })
}

// 修改科研人员关联项目
export function updateResearcherprojects(data) {
  return request({
    url: '/peoplegroup/researcherprojects',
    method: 'put',
    data: data
  })
}

// 删除科研人员关联项目
export function delResearcherprojects(researcherProjectId) {
  return request({
    url: '/peoplegroup/researcherprojects/' + researcherProjectId,
    method: 'delete'
  })
}
